
'use strict';
const app = require('tcb-admin-node');
const tcb_config = {env: 'az-food-3gu85zr278c4ebd4'};
var db = app.database();
app.init(tcb_config).auth();
exports.main = async (event, context, callback) => {
  
  console.log(event);
  let data = await db.collection("player").orderBy("money","desc").get();
    return data;
  if(action == "money") {
    
  }else {
    return await db.collection("player").orderBy("money","desc").get();
  }
};
